<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.thymeleaf.org/thymeleaf-extras-shiro">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h3 th:text="${name}"></h3>
<div shiro:hasPermission="user:add">
测试1<a href="/add">添加用户</a><br></div>
<div shiro:hasPermission="user:update">
测试1<a href="/update">更新用户</a></div>
</body>
</html>